package com.gec.teams.wechat.db.mapper;

import com.gec.teams.wechat.db.pojo.TbUser;
import com.gec.teams.wechat.vo.TbUserVo;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Set;

/**
* @author zgx
* @description 针对表【tb_user(用户表)】的数据库操作Mapper
* @createDate 2024-06-16 15:56:46
* @Entity com.gec.teams.wechat.db.pojo.TbUser
*/
@Repository
public interface TbUserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(TbUserVo record);

    int insertSelective(TbUser record);

    TbUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TbUser record);

    int updateByPrimaryKey(TbUser record);

    public boolean haveRootUser();

    public int insertInt(TbUserVo uservo);

    Set<String> searchUserPermissions(int userId);

    public Integer searchIdByOpenId(String openId);

    public TbUser searchById(int userId);

    public HashMap searchNameAndDept(int userId);

    public String searchUserHiredate(int userId);

    public HashMap searchUserSummary(int userId);

    public ArrayList<HashMap> searchUserGroupByDept(String keyword);

    public ArrayList<HashMap> searchMembers(List param);

    public ArrayList<HashMap> searchAllMembers();

    public ArrayList<HashMap> searchMembersDetail(List param);

}
